﻿using System;
using System.Collections.Generic;

namespace OA.Model
{
    //数据字典
    public class Dictionary :  Base
    {

        public virtual int ID { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public virtual string Code { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public virtual Common.EnumType.DictionaryType Type { get; set; }

        /// <summary>
        /// 字典名称
        /// </summary>
        public virtual string DictionaryName { get; set; }

        /// <summary>
        /// 上一级ID
        /// </summary>
        public virtual int? ParentID { get; set; }        

        /// <summary>
        /// 上一级
        /// </summary>
        public virtual Dictionary Parent { get; set; }

        /// <summary>
        /// 下级
        /// </summary>
        public virtual IList<Dictionary> Childs { get; set; }

        /// <summary>
        /// 下级字典
        /// </summary>
        public virtual IList<Dictionary> ChildDictionarys { get; set; }


        /// <summary>
        /// 下级数据
        /// </summary>
        public virtual IList<Dictionary> ChildDatas { get; set; }
    }
}